package com.gzl.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tll
 * @create 2020/8/2 8:51
 */
@RestController
public class IndexController {

    @RequestMapping({"/","/index"})
    public String index(){
        return "欢迎进入首页";
    }

    @RequestMapping("/noRoot")
    public String noRoot(){
        return "对不起,请先登录";
    }

    @RequestMapping("/one")
    public String one(){
        return "one";
    }

    @RequestMapping("/two")
    public String two(){
        return "two";
    }

}
